package com.demo.commons;

import cn.lingyangwl.framework.rabbitmq.callback.MqSendFailHandler;
import cn.lingyangwl.framework.rabbitmq.callback.RabbitSendFailMqMessage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @author shenguangyang
 */
@Component
public class MyMqSendFailHandler implements MqSendFailHandler {
    private static final Logger log = LoggerFactory.getLogger(MyMqSendFailHandler.class);
    @Override
    public void reachMaxRetryCount(RabbitSendFailMqMessage rabbitSendFailMqMessage) {
        log.error("消息发送失败: " + rabbitSendFailMqMessage);
    }
}
